package com.youme.model

import com.google.gson.annotations.SerializedName

/**
 * @Time:2021/4/9 9:11
 * @Author:wujinsheng
 * @Description:
 * @param orderStatus 0 已取消 10 未付款 20 已付款
 * @param payStatus 0 等待支付 1支付成功
 */
data class Order(
    @SerializedName("id") val id: String,
    @SerializedName("deskId") val deskId: String,
    @SerializedName("orderAmount") val orderAmount: Double,
    @SerializedName("buyerStatus") val buyerStatus: Int,
    @SerializedName("orderStatus") val orderStatus: Int,
    @SerializedName("payStatus") val payStatus: Int,
    @SerializedName("restName") val restName: String,
    @SerializedName("time") val time: String,
    @SerializedName("food") val food: List<OrderItemFood>
)

data class OrderItemFood(
    @SerializedName("productId") val productId: String,
    @SerializedName("productName") val productName: String,
    @SerializedName("productIcon") val productIcon: String,
    @SerializedName("productPrice") val productPrice: Double,
    @SerializedName("productQuantity") val productQuantity: Int
)